package cn.clwxy.gdz.controller.admin;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class GoAdminPageServlet extends HttpServlet {
	@Override
	protected void service(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("UTF-8");
		response.setCharacterEncoding("UTF-8");
		HttpSession session = request.getSession();
		Integer type = (Integer) session.getAttribute("type");
		if (3 == type) {
			response.sendRedirect("/GDZjiajiaowang/source/page/admin.jsp?type=3");
		} else {
			response.sendRedirect("/GDZjiajiaowang/source/page/index.jsp");
		}
	}
}
